package cn.zzz.openplatform.amap.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

@ConfigurationProperties(prefix = "amap")
public class AmapProperties {

    private List<AmapCredentialsProperties> credentials;

    public List<AmapCredentialsProperties> getCredentials() {
        return credentials;
    }

    public void setCredentials(List<AmapCredentialsProperties> credentials) {
        this.credentials = credentials;
    }

    @Data
    public static class AmapCredentialsProperties {
        private String key;
        private String sig;
    }
}
